9366
7177
Chci dostat text z webu, napsal jsem kód, použijte indexOf a subString, ale nefunguje to.
int index = response_str.indexOf ("Vzdálená IP adresa:");
index + = "Vzdálená adresa IP:". length ();
index + = "

". length (); int end = response_str.indexOf ("


", index); Řetězec strIP = response_str.substring (index, konec); Log.d ("", "Hello" + strIP); A toto je ukázkový text, chci získat 49.156.53.152
Vzdálená adresa IP:

** 49.156.53.152 **


UserAgent:

Mozilla / 5.0 (Windows NT 6.1; WOW64) AppleWebKit / 537.11 (KHTML, jako Gecko) Chrome / 23.0.1271.64 Safari / 537.11